Change some variables

Changed the text fields to be in an array, so that when selecting
multiple files and only one is selected then it won’t complain about
the other having out of bounds for file array.