Added Sphere Primative, Fixed Issues that were highlighted by static analysis