idPath

new function added. idPath finds any id and builds up the path to it.
this function will be used instead of old remove function and maybe
make training function.