Send AVERAGE if group -1, do not write num tuples
Send SUM if group -1 do not send num-tuples
minor change
Add snapshot percentage to output to give to client