Added check for internet connection. Added Log messgaes. Added return of download status.
Added catch clause in downloadUrl