added choice between totals and means for aggregation
added ratio relations to editor