aggregator tested and working

passes simple tests after bug fix. needs more testing though