Refactors some code
Adds lexer module