updated commenting to jsdoc format