Moved some methods to libTerminus, added workaround for monodevelop - bug (which creates a not needed event at every build).
Cleaned up some parts of the code