Added comments to window.cpp