Added jsdoc documentation fixes #6