Update pom for release.
Add tests, make tweaks for test findings, and add javadocs.