Added GetTotals() model, based on Ged Ridgway's get_totals.m