Added one more unit test, Moved the constraints checking to SurveyDSLValidator and added a few more constraints, so code is only generated if the constraints are satisfied - otherwise a message is printed.