Added JSDoc docs.