Bug fixes to persistence layer and updated documentation.