fixed derivative for relative loss function
fixed nnet test scripts