Enhancement/categories

Add categories tree extraction