Moved storage class to new file
Replaced debug sys.stdout with logging

...and pruned debug code from the test_hv script.