added yearly totals function calls to main loop, also block-commented and then unblock-commented the totals function, hopefully I changed it back properly