updated lexer.

lexer seems to kinda work now