Safe model creating

This solves creating models with constructors with required attibutes.
Merge pull request #5 from intersvyaz/master

Safe model creating