renamed startPage to indexPage
added index node test
implemented get flat with deth
implemented get tree with depth