Now saving main window position and state. issue #10