Refactored shortening calculations into a separate file
Flip direction of section orientation by 180 degrees so that shortening is positive instead of negative (no change in magnitudes, just for nicer display)