Added and corrected some JavaDoc.