Added screening for invalid goals.
Changed spherical coordinate convention to distance, bearing, declination (from distance, bearing, elevation).