Stabilised and cleaned QPersistence code.
Merge pull request #6 from Kampfgnom/changesFromMorq

Stabilised and cleaned QPersistence code.