rewrote alot of the parser/lexer code

changed the interface for parser/lexer, added
more options to command line tool