Added a check for the Centre of Mass array. Currently it's showing a bug in subhalo def