Fixed saving to work when creating models as well as updating models. (refs #323)
Merge branch 'master' of github.com:aidGer/aidGer