A flexible library for handling unit conversions