Added ability to configure specialCaseChars and groupDiffs, and cleaned ...

...up some of the code
So that would need to be reviewed first.