Multiple minor fixes in sphere generation (SpheresFactory class).