Added documentation to README

Added basic API documentation to the README, enabling people to write basic API applications.