done issue #16, add comments, fix bug in find_min_path