added Makefile and pre-commit hooks