Added and corrected javaDocs.