added comments for jsdoc