saveRegistry function

Store the Registy to the File System