basic commenting and corrected the violation calculation. (@SIT)