activationfunction handling revised.

doc updated