changes outdir arg in simulate functions, adjusts line lengths (<= 80)