Adding some javadocs.