add jsdoc comments