Add a pre-commit script, in order to check syntax/codestyle before commit

It will check only modified files, just before commit

see comment at the start to add this file as a pre-commit hook