refactored utility functions
transform matrix reset; spherical -> cartesian
group clean function; refactored TokenString constructor