Adds comments to tatals method
Adds group ordering by order column
Adds group sorting. Closes #13