added maven-javadoc-plugin
refactored tests to use hamcrest matchers.