Get rid of obsolete stuff
Improve/Fix Error messages
Fix window title encoding