Updated pom.xml and added javadocs to the build phase