Encapsulate Lexer keywords initialization and output fix