Updated comments with JSDoc