fixed unit issue in example, modified unitconverter function to allow change of scale