Fixed bug for single input, and removed remaining server.env$crt.* references
implemented partial derivatives for softmax nnet