After you have installed the code, you may want to make this change:

On or about line: 88

$delivery_city = $order->customer['city'];

should be:
$delivery_city = $order->delivery['city'];

We had a situation where a customer's address is different from their delivery address... without the above change, you can get a messed up export.

More...