clean the code and generate the javadoc