Added better error handling in file_parser(). Updated .gitignore.