Added jsdoc comments