Well, you have disconnected your airflow meter, right? Code 31 is the airflow meter signal. :-)
As for G2, you are trying to get a "monitor" function to work, not a "control" function. You had to make a hardware change (The R7 resistor) to the Maftpro in order for it to be able to monitor...