Far outs... that's a few codes
k
12 = Start here
MK3 TSRM On-Line
Also make sure your wiring is all good at the ignitor visibly
22 = Water temp signal, the green sensor 2 pin plug, make sure your wiring is good and not broken there
24 and 31 = Sounds like your air flow meter is fubar (f**ked up beyond all recognition) Try another one and see how it goes