Improve GetData() func & fix x/y bug in GenSphere

This commit extends the GetData() and GetNormalizedData() functions & fixes x/y order bug in GenerateSpherical() function. I also reorganized methods & converted tabs to spaces for consistency.