Added MainWindow class and base GUI stuff.