851 Regulator

The regulator on my 851 gave up and I have managed to get a new Shiningen SH673-12 which everybody suggests are a bullet proof option.

It has 6 outputs:

2 x yellow - assume go to alternator
2 x red/white - assume go to battery
2 x green - assume go to earth

Anybody advise if I am correct?

It looks like the alternator that has broken was not original and there is some strange wiring in place, including some that looks much too thin. I want to run new heavy gauge wires where needed.