Added autosave function (saves every 60 seconds, so that crashes can be recovered from)
Added option to turn off autosave