Pre commit hook

Apply on top of #1