Added Grunt task for JSDoc docs generation, minor improvements to JSDoc comments in code.