Factored sigmoidActivation().
Improved comments.
Fixed error in calling matrixXvector.
Fixed comments.
Fixed comments.