Update README to include documentation of API