fixored the lexer + implemented better error messages + renamed a var in .pas file