diff --git a/xmile-v1.0-cs01-examples/arrays.xmile b/xmile-v1.0-cs01-examples/arrays.xmile
new file mode 100644
index 0000000..ec87533
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/arrays.xmile
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+ Acme Constructor
+ Acme Software
+ 2014-05-10
+ Arrays
+
+ This model is used to validate simple array syntax.
+
+
+
+
+ 0
+ 10
+ 1.0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 20
+
+
+
+
+
+
+ 20
+
+
+
+
+
+
+ 20
+
+
+ 20
+
+
+ 20
+
+
+
+
+
+
+
+
+
+
+ 0,50,25
+
+
+
+
+
+
+ 90,10,50
+
+
+
+
+
+
+ 90,10,50
+
+
+ TIME
+
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/corporate-growth.xmile b/xmile-v1.0-cs01-examples/corporate-growth.xmile
new file mode 100644
index 0000000..3ac34d1
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/corporate-growth.xmile
@@ -0,0 +1,287 @@
+
+
+
+
+
+ CorpGrowth
+ f7921add-36a7-4fa9-a651-4b3dfaee6d64
+ isee systems, inc.
+ STELLA
+
+
+
+ 0
+ 100
+ 0.125
+
+
+
+
+ 10
+ net_hires
+
+ people
+
+
+ (indicated_sales_force - Sales_Force)/sales_force_adjustment_time
+ person/mo
+
+
+ 20
+ months
+
+
+ budget/sales_person_salary
+ people
+
+
+ orders_booked * revenue_to_sales
+ $/Month
+
+
+ 10
+ $/SKU
+
+
+ 2000
+ $/Person-Month
+
+
+ Sales_Force * sale_effectiveness
+ SKU/Month
+
+
+ normal_sales_effectiveness * effect_of__delivery_delay_recognized
+ SKU/Person-Month
+
+
+ 350
+ SKU/Person-Month
+
+
+ Delivery_Delay_Recognized/normal_delivery_delay_recognized
+
+
+
+ 1.15,1.1,1,0.75,0.5,0.35,0.3
+
+ Unitless
+
+
+ 2
+ months
+
+
+ 2
+ change_in_delivery_delay_recognized
+
+ months
+
+
+ (delivery_delay_impending - Delivery_Delay_Recognized) / time_for_delivery_delay_recognition
+
+
+ 5
+ months
+
+
+ Backlog / delivery_rate
+ months
+
+
+ 8000
+ orders_entered
+ orders_completed
+
+ SKU
+
+
+ orders_booked
+
+ sku/mo
+
+
+ delivery_rate
+
+ sku/mo
+
+
+ Backlog / normal_backlog
+
+
+ 0.9,1,1.7,2.3,3.5,6.3,10,20
+ 0,1,3.5,4.3,5,5.6,6,6.5
+
+ Unitless
+
+
+ 8000
+ SKU
+
+
+ normal_delivery_rate * effect_of_backlog_on_delivery_rate
+ SKU/Month
+
+
+ 4000
+ SKU/Month
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ revenue_to_sales
+ budget
+
+
+ Delivery_Delay_Recognized
+ change_in_delivery_delay_recognized
+
+
+ orders_booked
+ orders_entered
+
+
+ orders_booked
+ budget
+
+
+ delivery_delay_impending
+ change_in_delivery_delay_recognized
+
+
+ sale_effectiveness
+ orders_booked
+
+
+ effect_of__delivery_delay_recognized
+ sale_effectiveness
+
+
+ Sales_Force
+ orders_booked
+
+
+ delivery_rate
+ orders_completed
+
+
+ budget
+ indicated_sales_force
+
+
+ normal_sales_effectiveness
+ sale_effectiveness
+
+
+ indicated_sales_force
+ net_hires
+
+
+ Delivery_Delay_Recognized
+ effect_of__delivery_delay_recognized
+
+
+ delivery_rate
+ delivery_delay_impending
+
+
+ sales_person_salary
+ indicated_sales_force
+
+
+ Sales_Force
+ net_hires
+
+
+ Backlog
+ effect_of_backlog_on_delivery_rate
+
+
+ Backlog
+ delivery_delay_impending
+
+
+ normal_backlog
+ effect_of_backlog_on_delivery_rate
+
+
+ normal_delivery_rate
+ delivery_rate
+
+
+ time_for_delivery_delay_recognition
+ change_in_delivery_delay_recognized
+
+
+ normal_delivery_delay_recognized
+ effect_of__delivery_delay_recognized
+
+
+ sales_force_adjustment_time
+ net_hires
+
+
+ effect_of_backlog_on_delivery_rate
+ delivery_rate
+
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/diagram.xmile b/xmile-v1.0-cs01-examples/diagram.xmile
new file mode 100644
index 0000000..b67d691
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/diagram.xmile
@@ -0,0 +1,286 @@
+
+
+
+
+ CorpGrowth
+ f7921add-36a7-4fa9-a651-4b3dfaee6d64
+ isee systems, inc.
+ STELLA
+
+
+
+ 0
+ 100
+ 0.125
+
+
+
+
+ 10
+ net_hires
+
+ people
+
+
+ (indicated_sales_force - Sales_Force)/sales_force_adjustment_time
+ person/mo
+
+
+ 20
+ months
+
+
+ budget/sales_person_salary
+ people
+
+
+ orders_booked * revenue_to_sales
+ $/Month
+
+
+ 10
+ $/SKU
+
+
+ 2000
+ $/Person-Month
+
+
+ Sales_Force * sale_effectiveness
+ SKU/Month
+
+
+ normal_sales_effectiveness * effect_of__delivery_delay_recognized
+ SKU/Person-Month
+
+
+ 350
+ SKU/Person-Month
+
+
+ Delivery_Delay_Recognized/normal_delivery_delay_recognized
+
+
+ 0,0.5,1,1.5,2,2.5,3
+ 1.1499999999999999,1.1000000000000001,1,0.75,0.5,0.34999999999999998,0.29999999999999999
+
+ Unitless
+
+
+ 2
+ months
+
+
+ 2
+ change_in_delivery_delay_recognized
+
+ months
+
+
+ (delivery_delay_impending - Delivery_Delay_Recognized) / time_for_delivery_delay_recognition
+
+
+ 5
+ months
+
+
+ Backlog / delivery_rate
+ months
+
+
+ 8000
+ orders_entered
+ orders_completed
+
+ SKU
+
+
+ orders_booked
+
+ sku/mo
+
+
+ delivery_rate
+
+ sku/mo
+
+
+ Backlog / normal_backlog
+
+
+ 0.90000000000000002,1,1.7,2.2999999999999998,3.5,6.2999999999999998,10,20
+ 0,1,3.5,4.2999999999999998,5,5.5999999999999996,6,6.5
+
+ Unitless
+
+
+ 8000
+ SKU
+
+
+ normal_delivery_rate * effect_of_backlog_on_delivery_rate
+ SKU/Month
+
+
+ 4000
+ SKU/Month
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ revenue_to_sales
+ budget
+
+
+ Delivery_Delay_Recognized
+ change_in_delivery_delay_recognized
+
+
+ orders_booked
+ orders_entered
+
+
+ orders_booked
+ budget
+
+
+ delivery_delay_impending
+ change_in_delivery_delay_recognized
+
+
+ sale_effectiveness
+ orders_booked
+
+
+ effect_of__delivery_delay_recognized
+ sale_effectiveness
+
+
+ Sales_Force
+ orders_booked
+
+
+ delivery_rate
+ orders_completed
+
+
+ budget
+ indicated_sales_force
+
+
+ normal_sales_effectiveness
+ sale_effectiveness
+
+
+ indicated_sales_force
+ net_hires
+
+
+ Delivery_Delay_Recognized
+ effect_of__delivery_delay_recognized
+
+
+ delivery_rate
+ delivery_delay_impending
+
+
+ sales_person_salary
+ indicated_sales_force
+
+
+ Sales_Force
+ net_hires
+
+
+ Backlog
+ effect_of_backlog_on_delivery_rate
+
+
+ Backlog
+ delivery_delay_impending
+
+
+ normal_backlog
+ effect_of_backlog_on_delivery_rate
+
+
+ normal_delivery_rate
+ delivery_rate
+
+
+ time_for_delivery_delay_recognition
+ change_in_delivery_delay_recognized
+
+
+ normal_delivery_delay_recognized
+ effect_of__delivery_delay_recognized
+
+
+ sales_force_adjustment_time
+ net_hires
+
+
+ effect_of_backlog_on_delivery_rate
+ delivery_rate
+
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/eventposter.xmile b/xmile-v1.0-cs01-examples/eventposter.xmile
new file mode 100644
index 0000000..abdbb69
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/eventposter.xmile
@@ -0,0 +1,58 @@
+
+
+
+
+
+ Acme Constructor
+ Acme Software
+ Sample model
+
+ This model shows how to specify event posters.
+
+
+
+
+
+
+
+
+
+ 100
+ being_born
+
+
+
+
+
+
+
+
+
+
+ birth_rate*Population
+
+
+ 0.05
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/headers.xmile b/xmile-v1.0-cs01-examples/headers.xmile
new file mode 100644
index 0000000..58747ab
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/headers.xmile
@@ -0,0 +1,54 @@
+
+
+
+
+
+ Acme Constructor
+ Acme Software
+ 2014-05-10
+ 2014-05-01
+ Sample model
+
+ This model demonstrates a model with comprehensive
+ header detail.
+
+ 1
+ John Q. Doe
+ Modeling Institute
+ BigCo
+ modelers, inc 2008
+
+ 123 Main St, City, State, USA
+ email1@modelers.com
+ email1@gmail.com
+ +1 111-111-1111
+ +1 111-111-1111
+ www.modelers.com
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/included_macros.xmile b/xmile-v1.0-cs01-examples/included_macros.xmile
new file mode 100644
index 0000000..c35227a
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/included_macros.xmile
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+ Acme Constructor
+ Acme Software
+ macros
+
+ This file includes sample macros that may be included in other models.
+
+
+
+
+ x
+ base
+ LN(x)/LN(base)
+
+ , )]]>
+
+
+ logarithm of .]]>
+
+
+
+
+ x
+ x * 2
+ )]]>
+ Double the provided value.
+
+
+
diff --git a/xmile-v1.0-cs01-examples/included_model.xmile b/xmile-v1.0-cs01-examples/included_model.xmile
new file mode 100644
index 0000000..929b405
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/included_model.xmile
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+ Acme Constructor
+ Acme Software
+ included model
+
+ This model is intended to be included in master.xmile
+ as an example of an included model.
+
+
+
+
+
+
+ DOUBLE(100)
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/lynx-hares.xmile b/xmile-v1.0-cs01-examples/lynx-hares.xmile
new file mode 100644
index 0000000..80b2414
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/lynx-hares.xmile
@@ -0,0 +1,210 @@
+
+
+
+
+
+
+ isee systems
+ STELLA
+ lynx-hares.stmx
+ (C) 2013 by isee systems, inc.
+
+
+
+
+
+
+
+
+
+
+
+ 0
+ 60
+ 0.125
+
+
+
+
+
+ 5E4
+ Initially, there are 50000 hares in the ecosystem.
+ hare_births
+ hare_deaths
+
+
+ Hares*hare_birth_fraction
+ A compounding process is used to depict hare births. The births flow is defined as the product of Hares and their natality. This process works just like compounding interest in a savings account.
+
+
+ Lynx*hares_killed_per_lynx
+ In this external resource process, lynx are the resource underwriting the consumption of hares. Each lynx has a productivity, given by hare kills per lynx.
+
+
+ 1250
+ Initially, there are 1250 lynx.
+ lynx_births
+ lynx_deaths
+ one_time_lynx_harvest
+
+
+ Lynx*lynx_birth_fraction
+ A compounding process is used to depict lynx births. The births flow is defined as the product of lynx and their natality. This process works just like compounding interest in a savings account.
+
+
+ Lynx*lynx_death_fraction
+ This is a draining process. Some fraction of the lynx population will die each year. The portion that dies, in turn, depends on the density of hares in the ecosystem.
+
+
+ PULSE(size_of_1_time_lynx_harvest, 4, 1e3)
+ This test input uses a PULSE function to remove some number of Lynx from the system at time 4. This harvesting effectively knocks the system out of steady state, thus enabiling its latent dynamics to unfold.
+
+
+ 1.25
+ Each hare in the ecosystem is assumed to produce 1.25 offspring (on average) per year.
+
+
+ Hares/area
+ This equation calculates the average density of hares in the ecosystem.
+
+
+ 1E3
+ The area of the ecosystem is defined as 1000 hectares.
+
+
+ 0.25
+ On average, each lynx will generate .25 offspring per year.
+
+
+ 1
+
+
+ hare_density
+
+
+
+ .94,.66,.4,.35,.3,.25,.2,.15,.1,.07,.05
+
+
+
+ hare_density
+ The number of hares killed per lynx (per year) increases with the density of hares in the ecosystem. Note that when density is 0 (there are no hares), kills per lynx per year must be 0.
+
+
+
+ 0,50,100,150,200,250,300,350,400,450,500
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ hare_birth_fraction
+ hare_births
+
+
+ Hares
+ hare_births
+
+
+ Hares
+ hare_density
+
+
+ area
+ hare_density
+
+
+ hare_density
+ hares_killed_per_lynx
+
+
+ hare_density
+ lynx_death_fraction
+
+
+ hares_killed_per_lynx
+ hare_deaths
+
+
+ lynx_death_fraction
+ lynx_deaths
+
+
+ Lynx
+ lynx_deaths
+
+
+ Lynx
+ hare_deaths
+
+
+ Lynx
+ lynx_births
+
+
+ lynx_birth_fraction
+ lynx_births
+
+
+ size_of_1_time_lynx_harvest
+ one_time_lynx_harvest
+
+
+
+
+
+
+ flow
+ value
+ IF value THEN MAX(flow, 0) ELSE flow
+
+
diff --git a/xmile-v1.0-cs01-examples/master.xmile b/xmile-v1.0-cs01-examples/master.xmile
new file mode 100644
index 0000000..ce14ecd
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/master.xmile
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+ Acme Constructor
+ Acme Software
+ master model
+
+ This model demonstrates a simple model with multiple files
+ included providing additional models and macros.
+
+
+
+
+
+
+
+
+ 0
+ 100
+ 0.125
+
+
+
+
+
+ log(100,10)
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/multifile_submodel/module.xmile b/xmile-v1.0-cs01-examples/multifile_submodel/module.xmile
new file mode 100644
index 0000000..d6a410a
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/multifile_submodel/module.xmile
@@ -0,0 +1,27 @@
+
+
+
+
+
+ 1
+ 13
+ 0.25
+
+
+
+
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/multifile_submodel/root_model.xmile b/xmile-v1.0-cs01-examples/multifile_submodel/root_model.xmile
new file mode 100644
index 0000000..81fbe14
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/multifile_submodel/root_model.xmile
@@ -0,0 +1,33 @@
+
+
+
+
+ Product
+ sample
+
+
+
+
+
+ 1
+ 13
+ 0.25
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/practitioners.xmile b/xmile-v1.0-cs01-examples/practitioners.xmile
new file mode 100644
index 0000000..13f6e37
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/practitioners.xmile
@@ -0,0 +1,81 @@
+
+
+
+
+
+ Practitioners
+ f3921add-36a7-4fa9-a651-4b3dfaee6d64
+ isee systems, inc.
+ STELLA
+
+
+ 0
+ 12
+ 0.25
+
+
+
+ person,persons
+
+
+ yr,year
+
+
+ 1/Years
+
+
+
+
+
+ 100
+ adopting
+
+ Person
+
+
+ Practitioners * adoption_rate
+
+ Person/Year
+
+
+ 0.03
+ Per Year
+
+
+
+
+
+
+ adoption_rate
+ adopting
+
+
+ Practitioners
+ adopting
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/readme.txt b/xmile-v1.0-cs01-examples/readme.txt
new file mode 100644
index 0000000..bf9c0ff
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/readme.txt
@@ -0,0 +1,10 @@
+Files in this directory fall into two categories.
+
+Some files are intended to illustrate complete models, and will have content that represents
+a realistic model and can be simulated to produce meaningful results.
+
+Other files are intended to test specific features in the schema and may contain
+simplistic or partial formulations. They may illustrate such features and/or
+be later migrated into a more formal test suite.
+
+ll models in this directory should validate correctly against the schema.
\ No newline at end of file
diff --git a/xmile-v1.0-cs01-examples/scale_and_format.xmile b/xmile-v1.0-cs01-examples/scale_and_format.xmile
new file mode 100644
index 0000000..8c68e97
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/scale_and_format.xmile
@@ -0,0 +1,41 @@
+
+
+
+
+
+ Acme Constructor
+ Acme Software
+ Sample model
+
+ This model shows how to specify scale, range and format for
+ variables.
+
+
+
+
+
+
+
+ 100
+ being_born
+
+
+
+
+ birth_rate*Population
+
+
+ 0.05
+
+
+
+
+
+
diff --git a/xmile-v1.0-cs01-examples/single_file_submodel.xmile b/xmile-v1.0-cs01-examples/single_file_submodel.xmile
new file mode 100644
index 0000000..c153e88
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/single_file_submodel.xmile
@@ -0,0 +1,39 @@
+
+
+
+
+ Product
+ sample
+
+
+
+
+
+ 1
+ 13
+ 0.25
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xmile-v1.0-cs01-examples/variables.xmile b/xmile-v1.0-cs01-examples/variables.xmile
new file mode 100644
index 0000000..2d41ae1
--- /dev/null
+++ b/xmile-v1.0-cs01-examples/variables.xmile
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+ Acme Constructor
+ Acme Software
+ 2014-05-10
+ Corporate Growth model
+
+ This model demonstrates the format of a simple XMILE model with
+ only variable and no model diagram.
+
+
+
+
+ 0
+ 100
+ 0.125
+
+
+
+
+
+ 10
+ people
+ net_hires
+
+
+
+ (indicated_sales_force - Sales_Force)/sales_force_adjustment_time
+ person/mo
+
+
+ 20
+ months
+
+
+ budget/sales_person_salary
+ people
+
+
+ orders_booked * revenue_to_sales
+ $/Month
+
+
+ 10
+ $/SKU
+
+
+ 2000
+ $/Person-Month
+
+
+ Sales_Force * sale_effectiveness
+ SKU/Month
+
+
+ normal_sales_effectiveness * effect_of__delivery_delay_recognized
+ SKU/Person-Month
+
+
+ 350
+ SKU/Person-Month
+
+
+ Delivery_Delay_Recognized/normal_delivery_delay_recognized
+
+
+ 0,0.5,1,1.5,2,2.5,3
+ 1.1499999999999999,1.1000000000000001,1,0.75,0.5,0.34999999999999998,0.29999999999999999
+
+ Unitless
+
+
+ 2
+ months
+
+
+ 2
+ change_in_delivery_delay_recognized
+
+ months
+
+
+ (delivery_delay_impending - Delivery_Delay_Recognized) / time_for_delivery_delay_recognition
+
+
+ 5
+ months
+
+
+ Backlog / delivery_rate
+ months
+
+
+ 8000
+ orders_entered
+ orders_completed
+
+ SKU
+
+
+ orders_booked
+
+ sku/mo
+
+
+ delivery_rate
+
+ sku/mo
+
+
+ Backlog / normal_backlog
+
+
+ 0.90000000000000002,1,1.7,2.2999999999999998,3.5,6.2999999999999998,10,20
+ 0,1,3.5,4.2999999999999998,5,5.5999999999999996,6,6.5
+
+ Unitless
+
+
+ 8000
+ SKU
+
+
+ normal_delivery_rate * effect_of_backlog_on_delivery_rate
+ SKU/Month
+
+
+ 4000
+ SKU/Month
+
+
+
+