Added some documentation for the API.