Githook

Added a git hook (seems to work OK on my machine, although for some reason the terminal needs a `reset` afterwards).