Updated README and added new API example file