Extracted the save recording in a new method
Added a map to keep track of file versions
Recoding the version on save

And checking it during refreshes
This method is actually a constructor