fixed incorrect path
added script to select max k (instead of fixed)