all constraints checked by default in the generator setup dialog
updated regex for class name
tests for type name validation
removed unused class
made it compile
fixed test cases