Added loads of lexer code

Lots of progress on the lexer added, working to get native code methods
soon...