updates and revisions to the outputs calculation and file writing.