changed so the main file outputs fnum_out files, instead of every fnum_out steps