fix typo in readme
add JavaDoc
add tests