Added controllers and improved the constraints in the domain classes.