Update readme

updated code samples to reflect changes