added option to print to file for running in NRT delta code