Allow for other units

Provide values for px, pc, em, ex and utilize switch for divisor determination.
Make cases onliners
Merge pull request #231 from brettz9/patch-1

Allow for other units