Added most JavaDocs.