formatted output. results now stored in backup file and runtime tested in data.dat