Updated coherence code for subtracting mean evoked response