Applied new style and documentation rules to the "windows" library, also performing some extremly minor code fixing / re-structuring on the way.