Adding jsdoc for functions.