fixed typos in lexer, draft of document tree rendering