Worked out sum bugs in routine that sums angles. Still results don't make sense.