Add hierarchy and index file