Added function to store file information, updated view() function to display this file info