Added jsdoc
Improved documentation