Moved the degrees function into the functions module
Merge origin/master