Added JSDOC documentation