Fix monitor never closing when asked
Make clear() support different OS's
Move clear() to helpers, update commenting
Also update clear() in the client, comments
Merge pull request #2 from ryanmp/master

merge changes from other repo in