added a simple NN classifier and allowed for entire directories to be processed at once