Merged finFoil's hrlib::units code