Added JSDoc documentation.