Added javadoc documentation where it was missing or incomplete.