Bug Fixes + Aggregation

Everything ready to run. Fixed lots of bugs that were causing inaccurate
data.
Merge pull request #8 from muleroid/master

Done