Fixed some errors.  Made the use nextSlot and prevSlot universal.  Added test for single run.