fully-commented download automation script