Restructured to unit as subclass of float

Restructured to subclass unit from float so that it can behave like a
float and preserve units - need to add test cases