documentation and bug fixes

moved TestApp to test, added documentation, added mapping support for
Option types in case classes