Improved publishSphere function, added Black, fixed small bugs