added pre-commit hook and hook installer, resolves #401
Merge pull request #410 from dasilvacontin/issue/401

added pre-commit hook and hook installer, resolves #401