remove junk from makefile
add more context to log output
add encoding