refactoring programs
refactored data_aggregator, move part of codes into utilities.
fix bugs in data_aggregator.py; take less memory and save running time.