moved main execution parts from userinterface to separate main class
perform safe shutdown
added ugly tray icon