added jsdoc comment blocks