fixed several errors
Merge pull request #7 from mikeyman77/persistence-testing

fixed several errors