removed volatile hash and refactored metric_handler for readability
Merge pull request #4 from mmmmmrob/refactoring

removed volatile hash and refactored metric_handler for readability