added javadoc
added docs, another test case