generate_documentation function

A helper function which processes and displays the documentation part for each app