added pre-commit hook as quality control