Update readme with working example based on recent api changes