explain the API in readme