update output from project1, and correct mistakes in KNN