Update README.md

Reworked the sample code to use the modern features (Directory Layer, retry loops, ...)