added several utility functions and a stub for torsion angling