fixed some of the angle functions, more tests