Added a try catch to parseFile so that the program does not halt when it gets an error so we can run more files, and so the error messages are readable.