added function to print files to users screen