clean up, remove test outputs
fix basic angle calculation error-not first+last

the first and last angle are still calculated wrong