Fixes #6, fixes #7, got messagepanel in order again. Misc bugfixes