Initial refactoring and addition of store.
Explicitly specify database type.
Added namespace.
Style.
Added README.md.