Document methods

Adds documentation to all Window methods. Refactors the draw thread
initialization routine.