adding jsdoc comments