javadoc and fix buildClass