Added statusbar to main window
Minor refinements