fixed makefile and pendatic errors in readfile.cpp