added additional check for creation of constraints in model, added dataset