Generate apidoc and fix some javadoc