Added some missing javadoc and corrected a small typo.