Better detection of language

 Better detection of language + compound edit when replacing changes
Merge pull request #1 from raducoravu/patch-1

Better detection of language; compound edit when replacing changes