Fixed the issue #6. 

This commit to improve upon the pull request with
default parameter processing and test cases to test Custom Dimention
and Custom Metrics.