Updated code examples in readme