Now prints first5 and last5 in the same run
Separated the totals from the regular column so you can figure out which is which
Rearranged the code a bit for better readability