made some small fixes, added some precode for handling degrees in
angular functions