updated code examples in readme