Added more documentation for the API.