doc and test

javadoc sell and unit test