added end of file character to some type type reads. fixes while testing.