Added some JavaDocs. More to follow.