added intial implementation of pre-commit hook