update some class to final and update some javadoc