Makes the storage location configurable
Merge pull request #24 from tangmi/feature/22-persist-to-document

Makes the storage location configurable