reads input, partially
adds the full input file reading function