Add pre-commit style-checking hook
Add contributing instructions to README
Improve compilation script