tuned file reads, and formatted output to match results of unit test case.