- renamed createModelInstances to createModel
- split createModelInstances-function into two separate functions