changed how mean activity calculated, and changed channel gain value for training