Sounds like the airflow meter on its way out, you can pick them up new on auction sites for around £50. Has the air filter been replaced recently? There are plenty of good garages out there who are Audi freindly who could plug it in for the fault codes, with out charging Audi rates.
Good luck