Added jsdoc comments.