some refactoring, added sphere primitive
some refactoring, added sphere primitive