Fix problems with openStores and module conflicts.

Addresses issues: #9 and #4 .