Add format and check to the makefile
add a pre-commit hook
Close #680. Format our code base