Added code for AnglesStrongConstant and related energy/gradient functions.
Small bug fixes throughout.