Core/model: fixed a variable name
Core/model: if module not given explicitly, use model name as module name
            instead of the current module
Merge pull request #1 from jukkhop/master

Core/model: fixes related to model initialization