Add API documentation to README