makesample code conform to coding conventions
get rid of the connect 3.0 deprecation warning
test sub-documents
test sub-documents
test sub-documents
test sub-documents
test sub-documents
support for array of sub documents
add test cases for array of sub documents