minor code cleanup on client and api_client
minor formatting change in example code
error handling, add people to api