set modified flag to true after simulation tree is created
Merge pull request #22 from openworm/referencing_variables

set modified flag to true after simulation tree is created