returned to single threaded application
added keyboard support
some bugfixes and renames