rename utility functions
add calcAbsAngle function (not finished, not tested)