fixed EOF macro errors
added notes for EOF on mac