made a few changes to read in the code, wasn't working
trying out a test.txt instead of test.inp files for the data