Cleans up the equalizer code by converting some loops to proper for loops and fixes the conditions for looping. Approved by Manuel Jander. -Jeff