Did a couple of things here:

1) Added commenting. PLEASE re-read what I've put. Fill in any blank spots, or any spots where I may have something wrong / backwards.
2) Changed out the modeIndex setting of LED's to a for loop. This serves as an example as to how you don't need all of those static entries inside of multiple conditional statements.