Also changed the downloaded file contents to not include the file length in the first byte. This makes the code a bit less confusing.