unit_converter finalized

need to check for compatibility with math.c