More cleanups
Use another variable
Use wget -P parameter to set the download destination directory

Avoids us using cd, pushd and popd.
Since we use the wget -P parameter we don't need to use mkdir
Use wget --accept parameter to avoid getting unnecessary files
Mute wget
Rename and remove unused code
Uncomment necessary code
Change code to somewhat easier to read
Simplify code by starting with offset 0
Get rid of now unnecessary function
Use --no-proxy for wget