fixed nnet bug for single input, and no training if no input or output