parametrized the pulley separation distance

added a calculation for the maximum distance between pulleys