rewrote corridor generation to use center-y, upgraded value arrays to use typedefs, other tidy-up of code