Complete and document the API.