model.h: mistypo fix
codestyle fixes
some warnings were fixed: int-->size_t, order of fields initialization in constructor