Added sample code and updated README.md