made save file

also added an extra method to make it simpler