This was ripped beautifully from the standard WordPress RSS importer. A lot of the functionality was taken from there and tweaked so it could handle atom feeds so credit to them.
Everything else was done by Piers Karsenbarg.