fixes to indexLotsN.ipf.  should now write an XML file.