Added MIT license; added API example usage to README.md