This is how I am currently working out reports - this is a node.js program that will take in a csv file and do our totals and create files