Changed print statements to saving comments to file