Adding documentation for API.