Modified add_file function to allow user to enter a file