diff --git a/README.md b/README.md
index 94e4b1b..03cbf72 100755
--- a/README.md
+++ b/README.md
@@ -66,10 +66,12 @@ See [The FOP section on memory usage](http://xmlgraphics.apache.org/fop/1.1/runn
The final file structure before you run anything should look like this:
* empty.xml
-* final_images (folder)
-* final_xml (folder)
+* input (folder)
+ * images (folder)
+ * xml (folder)
* lib (folder)
* fop (folder)
+ * saxon.jar
* README.txt
* run.sh
* saxon.jar
@@ -156,7 +158,7 @@ Step 2: Run Files
Command line instructions are below.
-1: Place all files and images in final_xml and final_images, respectively
+1: Place all files and images in input/xml and input/images, respectively
1b. Open a terminal and change directory (cd command) to the book creator root folder.
diff --git a/config/config.sh b/config/config.sh
new file mode 100755
index 0000000..98c1d72
--- /dev/null
+++ b/config/config.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+# locate saxon jar file
+sax_jar=lib/saxon9he.jar
+
+# locate FOP base directory
+fop_lib=lib/fop-1.1
+
+# additional options for FOP processing (sent to the java process)
+# -d64: optimization for 64 bit processor
+# -Xmx3000m: sets the maximum available memory allocation pool to 3000 MB
+# Note: It's safe to leave this variable blank
+fop_opts="-d64 -Xmx3000m"
+
+# these variables shouldn't need to be changed, they are relative to fop_lib
+fop_bin=${fop_lib}/fop
+fop_conf=${fop_lib}/conf/fop.xconf
+
+fo_obj=output/pdf.fo
+pdf_obj=output/pdf.pdf
+
+tei_xsl=lib/tei2pdf/TEIcorpus_producer.xsl
+xslfo_xsl=lib/tei2pdf/xsl-fo-producer.xsl
+init_xml=lib/tei2pdf/empty.xml
+final_xml=output/Book_Corpus.xml
+
+# further options that may be useful
+
+# cleanup transitional files when finished
+cleanup=true
diff --git a/final_images/DH2014_2_0748ceb8db3603c0f2114e32ad9e95a5.jpg b/input/images/DH2014_2_0748ceb8db3603c0f2114e32ad9e95a5.jpg
similarity index 100%
rename from final_images/DH2014_2_0748ceb8db3603c0f2114e32ad9e95a5.jpg
rename to input/images/DH2014_2_0748ceb8db3603c0f2114e32ad9e95a5.jpg
diff --git a/final_images/DH2014_2_279bf344125b8cde3d2cc3400e29063e.jpg b/input/images/DH2014_2_279bf344125b8cde3d2cc3400e29063e.jpg
similarity index 100%
rename from final_images/DH2014_2_279bf344125b8cde3d2cc3400e29063e.jpg
rename to input/images/DH2014_2_279bf344125b8cde3d2cc3400e29063e.jpg
diff --git a/final_images/DH2014_2_DH2014_2_tool-image.jpg.jpg b/input/images/DH2014_2_DH2014_2_tool-image.jpg.jpg
similarity index 100%
rename from final_images/DH2014_2_DH2014_2_tool-image.jpg.jpg
rename to input/images/DH2014_2_DH2014_2_tool-image.jpg.jpg
diff --git a/final_images/DH2014_2_fe127006aa67a9c5b5b1cbd6811a47c2.jpg b/input/images/DH2014_2_fe127006aa67a9c5b5b1cbd6811a47c2.jpg
similarity index 100%
rename from final_images/DH2014_2_fe127006aa67a9c5b5b1cbd6811a47c2.jpg
rename to input/images/DH2014_2_fe127006aa67a9c5b5b1cbd6811a47c2.jpg
diff --git a/final_images/DH2014_2_signin.jpg b/input/images/DH2014_2_signin.jpg
similarity index 100%
rename from final_images/DH2014_2_signin.jpg
rename to input/images/DH2014_2_signin.jpg
diff --git a/final_images/DH2014_2_title.jpg b/input/images/DH2014_2_title.jpg
similarity index 100%
rename from final_images/DH2014_2_title.jpg
rename to input/images/DH2014_2_title.jpg
diff --git a/final_images/DH2014_2_tool-ref.jpg b/input/images/DH2014_2_tool-ref.jpg
similarity index 100%
rename from final_images/DH2014_2_tool-ref.jpg
rename to input/images/DH2014_2_tool-ref.jpg
diff --git a/final_images/ab-143.001.jpg b/input/images/ab-143.001.jpg
similarity index 100%
rename from final_images/ab-143.001.jpg
rename to input/images/ab-143.001.jpg
diff --git a/final_images/ab-143.002.jpg b/input/images/ab-143.002.jpg
similarity index 100%
rename from final_images/ab-143.002.jpg
rename to input/images/ab-143.002.jpg
diff --git a/final_images/ab-207.001.jpg b/input/images/ab-207.001.jpg
similarity index 100%
rename from final_images/ab-207.001.jpg
rename to input/images/ab-207.001.jpg
diff --git a/final_images/ab-207.002.jpg b/input/images/ab-207.002.jpg
similarity index 100%
rename from final_images/ab-207.002.jpg
rename to input/images/ab-207.002.jpg
diff --git a/final_images/ab-318.001.jpg b/input/images/ab-318.001.jpg
similarity index 100%
rename from final_images/ab-318.001.jpg
rename to input/images/ab-318.001.jpg
diff --git a/final_images/ab-318.002.jpg b/input/images/ab-318.002.jpg
similarity index 100%
rename from final_images/ab-318.002.jpg
rename to input/images/ab-318.002.jpg
diff --git a/final_images/ab-318.003.jpg b/input/images/ab-318.003.jpg
similarity index 100%
rename from final_images/ab-318.003.jpg
rename to input/images/ab-318.003.jpg
diff --git a/final_images/ab-318.004.jpg b/input/images/ab-318.004.jpg
similarity index 100%
rename from final_images/ab-318.004.jpg
rename to input/images/ab-318.004.jpg
diff --git a/final_images/ab-318.005.jpg b/input/images/ab-318.005.jpg
similarity index 100%
rename from final_images/ab-318.005.jpg
rename to input/images/ab-318.005.jpg
diff --git a/final_images/back_cover.jpg b/input/images/back_cover.jpg
similarity index 100%
rename from final_images/back_cover.jpg
rename to input/images/back_cover.jpg
diff --git a/final_images/front_cover.jpg b/input/images/front_cover.jpg
similarity index 100%
rename from final_images/front_cover.jpg
rename to input/images/front_cover.jpg
diff --git a/final_images/logo_bw.jpg b/input/images/logo_bw.jpg
similarity index 100%
rename from final_images/logo_bw.jpg
rename to input/images/logo_bw.jpg
diff --git a/final_images/logo_color.jpg b/input/images/logo_color.jpg
similarity index 100%
rename from final_images/logo_color.jpg
rename to input/images/logo_color.jpg
diff --git a/final_xml/PanelDemo-253.xml b/input/xml/PanelDemo-253.xml
similarity index 100%
rename from final_xml/PanelDemo-253.xml
rename to input/xml/PanelDemo-253.xml
diff --git a/final_xml/PanelDemo-292.xml b/input/xml/PanelDemo-292.xml
similarity index 100%
rename from final_xml/PanelDemo-292.xml
rename to input/xml/PanelDemo-292.xml
diff --git a/final_xml/PanelDemo-318.xml b/input/xml/PanelDemo-318.xml
similarity index 100%
rename from final_xml/PanelDemo-318.xml
rename to input/xml/PanelDemo-318.xml
diff --git a/final_xml/PanelDemo-319.xml b/input/xml/PanelDemo-319.xml
similarity index 100%
rename from final_xml/PanelDemo-319.xml
rename to input/xml/PanelDemo-319.xml
diff --git a/final_xml/PaperDemo-001.xml b/input/xml/PaperDemo-001.xml
similarity index 100%
rename from final_xml/PaperDemo-001.xml
rename to input/xml/PaperDemo-001.xml
diff --git a/final_xml/PaperDemo-143.xml b/input/xml/PaperDemo-143.xml
similarity index 100%
rename from final_xml/PaperDemo-143.xml
rename to input/xml/PaperDemo-143.xml
diff --git a/final_xml/PaperDemo-207.xml b/input/xml/PaperDemo-207.xml
similarity index 100%
rename from final_xml/PaperDemo-207.xml
rename to input/xml/PaperDemo-207.xml
diff --git a/final_xml/PaperDemo-425.xml b/input/xml/PaperDemo-425.xml
similarity index 100%
rename from final_xml/PaperDemo-425.xml
rename to input/xml/PaperDemo-425.xml
diff --git a/final_xml/PosterDemo-001.xml b/input/xml/PosterDemo-001.xml
similarity index 100%
rename from final_xml/PosterDemo-001.xml
rename to input/xml/PosterDemo-001.xml
diff --git a/final_xml/PosterDemo-190.xml b/input/xml/PosterDemo-190.xml
similarity index 100%
rename from final_xml/PosterDemo-190.xml
rename to input/xml/PosterDemo-190.xml
diff --git a/final_xml/PosterDemo-296.xml b/input/xml/PosterDemo-296.xml
similarity index 100%
rename from final_xml/PosterDemo-296.xml
rename to input/xml/PosterDemo-296.xml
diff --git a/final_xml/PosterDemo-336.xml b/input/xml/PosterDemo-336.xml
similarity index 100%
rename from final_xml/PosterDemo-336.xml
rename to input/xml/PosterDemo-336.xml
diff --git a/final_xml/intro-001.xml b/input/xml/intro-001.xml
similarity index 100%
rename from final_xml/intro-001.xml
rename to input/xml/intro-001.xml
diff --git a/final_xml/intro-002.xml b/input/xml/intro-002.xml
similarity index 100%
rename from final_xml/intro-002.xml
rename to input/xml/intro-002.xml
diff --git a/final_xml/intro-003.xml b/input/xml/intro-003.xml
similarity index 100%
rename from final_xml/intro-003.xml
rename to input/xml/intro-003.xml
diff --git a/final_xml/intro-004.xml b/input/xml/intro-004.xml
similarity index 100%
rename from final_xml/intro-004.xml
rename to input/xml/intro-004.xml
diff --git a/final_xml/intro-006.xml b/input/xml/intro-006.xml
similarity index 100%
rename from final_xml/intro-006.xml
rename to input/xml/intro-006.xml
diff --git a/final_xml/intro-007.xml b/input/xml/intro-007.xml
similarity index 100%
rename from final_xml/intro-007.xml
rename to input/xml/intro-007.xml
diff --git a/final_xml/intro-008.xml b/input/xml/intro-008.xml
similarity index 100%
rename from final_xml/intro-008.xml
rename to input/xml/intro-008.xml
diff --git a/final_xml/intro-009.xml b/input/xml/intro-009.xml
similarity index 100%
rename from final_xml/intro-009.xml
rename to input/xml/intro-009.xml
diff --git a/final_xml/plenary-001.xml b/input/xml/plenary-001.xml
similarity index 100%
rename from final_xml/plenary-001.xml
rename to input/xml/plenary-001.xml
diff --git a/final_xml/plenary-002.xml b/input/xml/plenary-002.xml
similarity index 100%
rename from final_xml/plenary-002.xml
rename to input/xml/plenary-002.xml
diff --git a/final_xml/plenary-003.xml b/input/xml/plenary-003.xml
similarity index 100%
rename from final_xml/plenary-003.xml
rename to input/xml/plenary-003.xml
diff --git a/final_xml/reviewers-001.xml b/input/xml/reviewers-001.xml
similarity index 100%
rename from final_xml/reviewers-001.xml
rename to input/xml/reviewers-001.xml
diff --git a/final_xml/workshops-001.xml b/input/xml/workshops-001.xml
similarity index 100%
rename from final_xml/workshops-001.xml
rename to input/xml/workshops-001.xml
diff --git a/final_xml/workshops-002.xml b/input/xml/workshops-002.xml
similarity index 100%
rename from final_xml/workshops-002.xml
rename to input/xml/workshops-002.xml
diff --git a/final_xml/workshops-003.xml b/input/xml/workshops-003.xml
similarity index 100%
rename from final_xml/workshops-003.xml
rename to input/xml/workshops-003.xml
diff --git a/lib/.gitignore b/lib/.gitignore
new file mode 100644
index 0000000..4d388d0
--- /dev/null
+++ b/lib/.gitignore
@@ -0,0 +1,2 @@
+fop*
+saxon*.jar
diff --git a/lib/lib.md b/lib/lib.md
index dfef68c..2910b9f 100644
--- a/lib/lib.md
+++ b/lib/lib.md
@@ -1 +1 @@
-This folder is for holding the FOP Processor.
\ No newline at end of file
+This folder is for holding the Saxon jar, FOP Processor, and internal library.
diff --git a/TEIcorpus_producer.xsl b/lib/tei2pdf/TEIcorpus_producer.xsl
similarity index 99%
rename from TEIcorpus_producer.xsl
rename to lib/tei2pdf/TEIcorpus_producer.xsl
index af5c7df..0c46117 100755
--- a/TEIcorpus_producer.xsl
+++ b/lib/tei2pdf/TEIcorpus_producer.xsl
@@ -8,7 +8,7 @@
exclude-result-prefixes="#all">
-
+