make code samples for persistent DS more consistent, fix a typo