fixed issues with the lexer and rewrote the lexer configuration system.