Add makefile, add more verbose error reporting to client