Minor change

Changed the outputFile opening mode as write instead of append. Also made a small change taking out the -d part from the summary.