Control a relay

For every additional battery you add you will need two more poles of relay. So if you have SPDT relays this would be another two relays. One relay pole will disconnect the ground of the battery while the other pole will move the positive wire from the charger's positive output to the previous cells - side.

I don't quite understand what you are getting at with the coms pin?