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
Merge pull request #25 from Kotkot/patch-2

write data.dat into the em after changing m, f and rec dev - also need to change om to em on change_index lines next