Added changes (mschmiddunser 12.14) to allow output every nth time step. The also saves the most recent output, which is overwritten at each time step