minor updates
first working draft of function.  Needs cleaning.
removed num_to_name and function name changes
updated for util function name changes