Update README.md

API documentation. Fixes #4