Refactor Step 1
Remove debugging console.log
Refactor step 2
Refactor step 3
Merge pull request #43 from Scarygami/feature/material_design

Refactor metric accumulation for easier maintainance

Looks good and clean.
Tested on my end too and everything work as expected.