Improve comments

Added more comments in base.js and operator.js.