I suggest you get elsawin as I cant list every single wiring thing on this thread.
Your dimming sides relies on the dimming center mirror, you have to run 2 wires from each side mirror to the center mirror which shares the same 2 pins on the center mirror, this doesnt need coding, just wiring.
Folding relies on a wire from the correct door switch to the drivers door module, iirc pin 4 of the mirror switch to the door module, it may already be there, but best to check, then turn on folding in the door modules, vagcom advises what to code.