updates and adding calculations to csv