fixed wrapAngle

added comment block and removed unused code