File writing is off by default; to activate, add to the patch interaction model coeff dictionary writeToFile yes;