Refactor Window

Change: rename MainWindow to Window.