added tests
removed unnecessary and dead code
replaced expressions which always yield same value with literals
improved code style
Merge pull request #3 from ratefuchs/master

improved readability of parser and lexer