Hi Spansh,
I downloaded your galaxy file on the 12th and am pre-processing it before using it for my stuff. Thank you very much for providing this, by the way. Anyway, a couple of things.
FIrst, I guess you already know, but I found a bunch of systems which have more than one body listed as the "mainStar".
For example, Phae Phlai AA-A h0 ("id64":1605743) has both:
"id64":108086391058497647,"bodyId":3,"name":"Phae Phlai AA-A h0 A","type":"Star","subType":"Herbig Ae/Be Star","distanceToArrival":0.0,"mainStar":true, etc, and
"id64":180143985096425583,"bodyId":5,"name":"Phae Phlai AA-A h0 C","type":"Star","subType":"O (Blue-White) Star","distanceToArrival":920.078613,"mainStar":true,etc.
I presume that the first is the actual main star, as it's distanceToArrival is zero. I've yet to check that this works for all the affected systems It seems that there are 146 systems which have more than one mainStar entry at zero distance (most have one extra, but a couple have two extra), but thought you'd want to know that this data inconsistency exists in case you wanted to fix the data for everyone.