updates documentation to jsdoc3 format