Added some javadocs.