Added some JSDoc comments