Moved Window to a submodule and slightly changed initialization routine