added
diff --git a/i5TextHeaderSkeleton.i5.xml b/i5TextHeaderSkeleton.i5.xml
new file mode 100644
index 0000000..6da8370
--- /dev/null
+++ b/i5TextHeaderSkeleton.i5.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE idsHeader PUBLIC "-//IDS//DTD IDS-I5 1.0//EN" "http://corpora.ids-mannheim.de/I5/DTD/i5.dtd">
+
+<!-- I5 TEXTHEADER SKELETON FOR KLK-FI. HL 2024-09-12  -->
+<!-- It is not necessary to edit this document. Variables will be filled in by vrt2tei.pl -->
+<!-- If a textheader skeleton for another corpus is needed, make a copy and edit it -->
+
+<idsHeader type="text" pattern="text" status="new" version="1.1" TEIform="teiHeader">
+  <fileDesc>
+    <titleStmt>
+      <textSigle>[$KKK/JAN.00001]</textSigle>
+      <t.title assemblage="external">[$TEXTSIGLE] [$PUBLTITLE] [$DATE-READABLE] Text #[TEXTCOUNT]</t.title>
+    </titleStmt>
+    <publicationStmt>
+      <distributor>NOT FOR DISTRIBUTION - to be used locally in EuReCo</distributor>
+      <pubAddress/>
+      <availability region="world">CLARIN-RES</availability>
+      <pubDate/>
+    </publicationStmt>
+    <sourceDesc>
+      <biblStruct>
+        <analytic>
+          <!-- the article / text  -->
+          <h.title type="main">$LABEL, Text #[TEXTCOUNT]</h.title>
+          <h.author/>
+          <imprint/>
+          <!-- idno type="PAGEID">[$PAGEID]</idno -->
+          <!-- idno type="BINDINGID">[$BID]</idno -->
+          <!-- idno type="ID">$ID</idno -->
+          <!-- idno type="KIELIPANKKI_METAFILENAME">[$METAFILENAME]</idno -->
+          <!-- idno type="KIELIPANKKI_ORIGFILENAME">[$ORIGFILENAME]</idno -->
+        </analytic>
+        <monogr>
+          <!-- the edition of that day / week -->
+          <h.title type="main">$PUBLTITLE</h.title>
+          <imprint>
+            <pubPlace>[$PUBLPLACE]</pubPlace>
+            <publisher>[$PUBLISHER]</publisher>
+            <pubDate type="year">[$YEAR]</pubDate>
+            <pubDate type="month">[$MONTH]</pubDate>
+            <pubDate type="day">[$DAY]</pubDate>
+          </imprint>      
+          <!-- biblScope unit="ISSUETITLE">[$ISSUETITLE]</biblScope -->
+          <!-- biblScope unit="ISSUENO">[$ISSUENO]</biblScope -->
+          <!-- biblScope unit="ISSUEDATE">[$ISSUEDATE]</biblScope -->
+          <!-- biblScope unit="pp">[$PAGENO]</biblScope -->
+        </monogr>
+      </biblStruct>
+      <reference type="complete" assemblage="regular">[$KKK] [$PUBLTITLE], [[$TRANSLATION($PUBLTYPE)]], [$DATE]</reference>
+      <reference type="short" assemblage="regular">[$KKK] [$PUBLTITLE], [$DATE]</reference>
+    </sourceDesc>
+  </fileDesc>
+  <encodingDesc>
+    <tagsDecl>
+        <tagUsage gi="s" occurs="[$SENTCOUNT]"/>
+        <tagUsage gi="w" occurs="[$TOKENCOUNT]"/>
+    </tagsDecl>
+  </encodingDesc>
+  <profileDesc>
+    <creation>
+      <creatDate>[$DATE-BACKWARDS]</creatDate>
+    </creation>
+    <langUsage>
+      <language id="fi" usage="|xxx:44|fin:23|eng:3|"/>
+    </langUsage>
+    <textClass>      
+      <classCode scheme="kielipankki_klk">[$PUBLTYPE]</classCode>
+      <classCode scheme="kielipankki_klk_mapped">[$TRANSLATION($PUBLTYPE)]</classCode>
+    </textClass>
+    <!--textDesc>
+      <textTypeArt/>
+      <textDomain>Computer</textDomain>
+      <column>COMPUTER</column>
+    </textDesc-->
+  </profileDesc>
+  <revisionDesc>
+    <change when="[$WHEN]" who="HL">I5 version for EuReCo</change>
+  </revisionDesc>
+</idsHeader>
diff --git a/rearrange-idsDoc.awk b/rearrange-idsDoc.awk
new file mode 100644
index 0000000..e267553
--- /dev/null
+++ b/rearrange-idsDoc.awk
@@ -0,0 +1,14 @@
+# putting the end tag /</idsDoc> in the right place
+BEGIN                                                           {DOCCOUNT = 0;}
+
+$0 ~  "</idsDoc>"                                               {}
+$0 ~  "<idsDoc>"                                                {
+                                                                  if(DOCCOUNT++ > 0){
+								      print "  </idsDoc>";
+								    };
+								  print $0;
+                                                                }
+$0 ~  "</idsCorpus>"                                            {print "  </idsDoc>\n</idsCorpus>"}
+
+$0 !~ "</idsDoc>" && $0 !~ "</idsCorpus>" && $0 !~ "<idsDoc>"   {print}
+