Fixed an issue where metrics json was being aggregated

Metrics JSON were being aggregated instead of being reset
Merge pull request #11 from tianx2/module-reorg

Fixed an issue where metrics json was being aggregated