finished getWormMotionCodes.m