Changed the AnglesEnergy and AnglesGradient such that Tan is used instead of Sin; this prevents angles from
acheiving a difference in itial angle of +/- Pi.