add basic API documentation to README