Changed SphereGenerator
 - fixed generation bugs
 - added 2D and 3D mode
 - adjusted XMLInput