Command-line processing for knn codes fixed.