Added support for changing the activation function (and switched to C++14)