Added title of MainWindow, cleared up unused functions.