Refine documentation.
Add missing javadoc.