updated readme and code examples