To be entirely correct, the AV node receives its signals from the sinoatrial node. The AV node's main function is to delay conduction of the received impulses to the ventricle, allowing the atria to complete their ejection before the ventricles contract.
In atrial fibrillation, often there are superfluous cells which generate additional impulses (ectopic foci) or re-entrant sources, which make the impulses go round the atria, causing the fibrillations. Via ablation, these ectopic foci or re-entrant sources can be destroyed, and order is restored. :)
See:
http://en.wikipedia.org/wiki/Atrial_fibrillation#Electrophysiology