Made some changes so a failed download attempt will try again with different file extensions.
Fixed some issues with the URL being messed up when I changed the file extension incorrectly.