cleaned up code for generating unit sphere
got values of a grid working
got the equally space intervals to work
got the x,y,z calculations correct
successfully prepared for random sampling to be done
got random sampling working