add "unit" option to Metric

closes #76
remove ternary operator
Merge pull request #81 from afeld/add/metric-units

add "unit" option to Metric