adding the dpownloadFile method with same signatures as before as
overloaded methods
corrected java doc for downloadFile