Add javadoc target and fix some javadoc errors