updated sample and readme to reflect recent changes