Added activation function to neurons and layers