moved file tests to a function to make it easier to test on multiple files
Made a separate unit to handle lex events - added nested comments error
added some errors
compiler now displays compile errors