Added pre-commit hook to repository.