code cleanup and fixed brackets mainwindow icon