Changed some of the variables for the summary output
fixed a bug in the summary printing