Add profile to pom.xml for generating javadocs to the docs directory.
Fix javadoc warnings.