Add and clean up various Javadoc.