Revert "document how to detect top-most parent"

This reverts commit abd00a7f3b9e52425e256bdf8629e06232035935.
add is_rootdir method