Moved degtorad to a global constant, and added

arc function