Fix example and update readme

Update example and readme to reflect recent merged changes.