minor refactoring
nn's now accept multiple input rows @ once