Update documentation with the new API.