Added JSDoc comments