Update window.h

Cleanup and comment