Fixed usage counting, csv fomatting and added new test cases.
Merge branch 'usage_dev_branch' of https://github.com/open-infinity/cmt into usage_dev_branch