Adding pre-commit hook