Adding constructors for Unit and Dimensions and some helper functions