Added main method, changed project file structure, got a working window.