Added some javadoc.