more calculatory things, fixed 90 180 270 bug

idiot-proof quadrant code for polar angle
fixed cases where angles were 90 180 270