There are many great products in the market, I've heard great reviews on Cowboy Magic, fortunately Max's hair does not get matted, many may disagree, but this is what I use daily on Max
J&D - J and D Pastel Bone Wide Tooth Tail Comb (Assorted Colors)
in the morning, before I make his top knot, and then at night when I take it off.
I try not to pull his hair and to be gentle,so far not matting.
Good luck