Added javadoc artifact attachment to parent pom.xml.

maven build now attaches both source and javadoc to artifacts.  

A lot of minor changes were necessary to avoid the javadoc process reporting errors, which cause the maven build to break.