small debug fixes
fix bug when doing angle=180... I thought this was already fixed... weird
fixes after more debugging