Nearly finished with getLocomotionBends.m