write data.dat into the em after changing m, f and rec dev

I added a few lines of code so that after running ss3 for the first time (after changing m, f, and rec dev), it takes out the ss.dat_new and extract its expected value part, and write it as data.dat
then copy