More jsdoc and fixes for closure compiler.