fixing csv headers and total expense calculation fix