adding jsdoc and some documentation