Update API documentation in README.