Finish toDegress, make debug optional for UI