Added some basic javadocs.