add option of "preferred_attr_units"

As suggested by @taldcroft in #12