fixed line intend in generated models
do not save empty models
improved Factory::create()