- added a javadoc plugin to the pom file
 - cleaned up code