Added pre-commit hook.
Tweaks to pre-commit.