Added better error logging; updated makefile to use install