Possibly finish project 2

Write syntax errors into listing file.
Fix problem with get_next_token() referring to the previous token sometimes.