[mod] move code around to ease lisibility
[mod] rename find method to position_to_path
[mod] rename get_node_at_end_of_path to path_to_node
[enh] new position_to_node public function