Cleanup sphere code

Minor style tweaks to source code.