Added some cli options and optimized the constructor of the main window. Fixed a little bug preventing the gui to refresh when double clicking on systray icon.