Added JavaDoc commenting

Added comments for methods  for JavaDocs