Adding lexer tests.
Finished lexer tests.
Fixed a number of small bugs. Now works.