update Makefile
grammar in error messages
remove unused variables
fix sign-compare compiler warning