set up testing functionality in readInput
rewrote readTable to read_table, tested and confirmed this works
replaced all instances of readTable with read_table