Separate window creation and main file for modularity and more window options
Separated window functions and main program