Various code cleanup. Removed some unused functions for teh clever solving method. Also specifed the main window to open maximized.