initial function to allow units to be used more flexibly
convert psunits from string to arrayref
write new unit defs to output
update functions to use _u, _uxy instead of PS u, ux, uy
remove old u, ux, uy defs from resources
update tests
tidy comments
code tidy, update tests
note changes