simplify maxOccupied calculation and optimize the edge case when maxOccupied is, um, occupied
make the default number of repeats 20 for quicker turn arounds
add a diagnostic dump string for when tests go wrong