slot milling: added formal computation of path length, better UI