Minor Tweaks

Some minor tweaks to make it print to an output file