23Oct changes

corrected file outputs to .txt format
finished the coding of the project with sorted aggregated result file.