add jdoc and tests
add jdoc and tests