fixed #94 reversal of file transfer order by using shift() to get first element rather than pop() which gets last element of array