Modified model.py to support creation of aggregated results
Component-side of supervisor now ready. To be revised, anyway