Added shape Ids to XML
Added output XML to corrections