Added JSDOC comments