more jsdocs and google closure advance optimizations