Moved the load/save common code into helper routines
Made the save code know when an IOError happened during the primary file write
so would then attempt to write to the alternate file