First pass at totals code for leader calculation.
Fixed bad Week reference.
Added first pass at formatting the total data.
Changed totals JSON call to array.
Fixed misspellings.