Pleased to see that it worked though I can't take credit, as mentioned I simply wrapped an existing ID3 source library. For info, it should handle almost any flavour of id3.
Adding filename to the output would be trivial. How do you want it separated, space, tab, comma? Do you want filename...