add parse_files to multi doc parser, add docs for headpath and findpath
and add a method to traverse a tree bottom up (i.e. children before parents)
traverse heads in the right order, also added a check method in an attempt to fix a bug, and fix the bug (duplicate entries at the same level)