Basic fnctionality of autosave before running

TODO: Add preferences
      Improve UI