Cleaned up examples, other code, and added `in' query

The examples are cleaner and more informative.  Found and fixed
bugs in code.  Added the `in' query.  Looks like it works.