Fixed activation functions and some comments.