corrected return type on save
corrected return type on save
fixed spec test to add provider to file
added support for StorageProvider factory