Now we have a generic constructTRN function that takes in a filename