Add some API documentation to README