added comments jsdoc style