made basic changes to download script. commented code