bugfix errors
Add constructors to some models