Further development on lexer

I also began work on the parser and added some testcases and corrected some
things in the documentation.
Started with parser

Extended lexer and created some testcases...