added debug option to start program in Normal window state