Add some API documentation to the README