Edited program to output statistics summary information to log file and to print the same information to stdout if the verbose setting is turned on