updated docstring for smooth_path