Conf update code

I have not been able to locate the code where FreePBX updates/overwrites the conf file (I think extensions_additional). Can someone please point me to it. More specifically the IVR stuff.