moved default debugging output of totals to --debug