moved auxilliary code from simrecomb.cpp to simrecomb_aux.cpp