Cat_names is optional, but ShowClassSplits() have to use cat_names. This makes ShowClassSplits return empty dataframe  It should just use cat_id if cat_names is not provided. I'll try fixing