Removed global variables

Removed global variables idCounter and sources, that were declared inside createXML() function. Now they are declared inside the main ExportArdour() function locally and passed as arguments.