Fixes #39: added log messages to storage code.