added makefile
improved error display