add "unit" option to Metric

closes #76
I know you didn't put in the first one, but mind removing the use of ternary operators here? Easier to read, and better evaluated by code coverage tools.