Fixed windows thread safety issue.
Comment cleanup.
Fixed demo api calls.
Fixed compilation issue due to missing variable type.
Changed the propagation boolean to short reserved.  Bit 1 will be used for propagation.
Added propagation checks to the mouse callback.
Cleaned up some logging and compilation issues.
Refactored a large portion of the darwin codebase.
Added a few comments.