Added JSDoc comments for library documentation.