documentation added (jsdoc)