catBelongingRegions functional but missing regions that are not being concatenated.

Bunch of new files, like external functions etc.