cleaned up somewhat. still need to improve loading of totals - should load from bottom up as mark suggested - instead of by year - and faster