Add JSDoc to generate API documentation
Fix API documentation