adding simple git pre-commit hook and updating the check files script