added get average running costs
fixed bug: missing output buffering
use generic approach for average / non-average distinction
refactored set general costs to delete on zero
fixed bug: missing json encoding
adjusted display of average values
flatened hirarchy in average data