Improved persistence and added some examples.