Removed unused variables
Cleaned up code a big
Removed shouldAllowViolations property of the text field and text view