added new argument to alm fxn total_details to allow outputing a one row detailed totals output by source