added java doc to class method