Created main window file, defined main window procedure, and started main loop.