Added output of the results into the file
Formatted output of the results into file