Fixed numerous bugs, including using an uninitialized variable, using an incorrect formula for the projection. Also, calculating radii of spherical caps by the projection instead of copying them from the circles