Added cluWaitOnAnyEvent, overhauled query routines and added query sample
Added documentation of cluWaitOnAnyEvent and the print functions. A little code cleanup. Made the wait sample delay a second so you can see it wait.