Fleshed out recursive getRelations, and fixed getCat to be recursive when provided the 'A'll category.