Fixing mistakes and jsdoc