Adds totals to export for #53, also closes #88.