add JSDoc comments