added nnpredict and nntest