combine r,theta,phi into one parameter
combine r,theta,phi into one parameter
mlint parfor warnings
add export