Bays is dynamic

The number of bays is now parametrically determined.  There's  a setting
for maximum bay width that is used to calculate the number of bays for a
given length.