cleaned up code for harmonic mapping from plane to sphere and initial mapping method