complete readdic readinput goodfile functions

completed functions