Average activation function removed. Derivative added to the activation functions..