optional out directory param

optional out directory param. Used so that repeat runs are faster