some cleaning up
added lex_tree building code
current version