The weight construction was changed to use object notation.
Import was simplified.
The regex creation was shortened.
Fractional kilograms matching was added to the weight class.