Improved window, added mainmenu, chat and console commands