Added jsdoc comments to all the methods