Added jsdoc to build and updated comments to be compatible.