Added some JavaDocs.