To normalize the sunroof, you need to hold the switch in the "vent open" position. (Pushing straight up). the sunroof should completely close and resynch.
The steering angle sensor needed to be adapted by turning the steering wheel lock to lock. That was causing the ESP/BAS/ABS
lights and such.
The windows need to be relearned. Using the first detent of the switches, roll each window down and then up. Do not use the second detent or the "express" position to do this.
They need to meausure their complete path of travel before allowing the express feature to operate.