Add documentation and tests to show how to use a custom case class for a...

Show explicitly how to map case classes to single fields.  Add tests.