Changes and comments for wq_examples

Let me know if you like the changes, so I can modify the perl and python versions. (@dthain, @dpandiar)