setup for C code, added a file reader