update javadoc comments.
add protected method to override.
Add javadoc comments.