extract classes and add javadoc