cleaned up delay logic. added pedal comparisons (again)