Assorted documentation and formatting cleanups

I would like to think of a better name for the windowing stuff anyway - but yeah