Add cartesian to spherical function. Fix error in spherical to cartesian function