adding pre-commit hook script and setup helper