add javadoc
add test
add installation section.