added first rudimentary window, fixed m4 script variable assignment