Added JSDoc-style comments to methods.