Debugging and moved get_angle into transform.cc