Fix/category tree

Change the return value of the method category_tree. Now return the value returned is the category instance instead of their name only.