redirected console output to output txt files for comparison with expected outputs