bugs fix on logging and parameter_estimations as well as add grid_search_knn function