Some code style improvements
Moved SimpleDocumentListener to ui package
Some cleanup: overrides, unnecessary casts
Some variable renaming
Moved the printing code to SequiturUtil