Reorgenized the MainWin Class, added a system tray icon and an autosave

the system tray icon not working well in kde