removed unneccessary code from incremental alex lexer
change to stateToTree to make usage easier