Added functionality to return List of applications with file names included
Fixed logical problems for generating pdfs