File handling

Changed the file handling so that it more gracefully handles non
existent files. Made it more user friendly and sleek.