Changed analysis to do detrending by moving average, before epoching, and also to remove artifacts.