I removed and added some printf debugging statements in transmit.c. Now it just prints
the rcp transmission command for each file it attempts to send. transmit.c seems to
work perfectly. So do all the other files at this commit.