Added an extra function to calculate averaghe distance of x0
Merge branch 'threed' of github.com:sfstoolbox/sfs into threed

* 'threed' of github.com:sfstoolbox/sfs:
  Updated validation function to new [p,x,y,z] return values