Starting to implement changes to c code, reading from input file rather than data.h