Update README, add API documentation.