Added in the dollar sign as the program-ender
Rewrote lex function to handle line numbers