Add some documentation on the API to the README