Added some comments and changed rainbowCycle_f to rainbowCycle_r