Adding docs for API.