Added pretty printing for output files