fixing README.md and re-doing code examples