Update comments and javadoc.