changed the calculation of violation score
Merge pull request #1 from jokke/master

changed the calculation of violation score