added file producers and debugged eof checking.