Correct spelling and add EOF markers