Added permanent storage features to modules. Improved docs and did some cleanup.