tweaks to preferences and preferences_test
Merge pull request #16 from devoncarew/storageaccess

tweaks to preferences and preferences_test