update readme with code examples