added pre-commit
standardised events