Re-added angle_diff function which returns appropriate positive or negative values