Cleaned up code and got getAllDownloadStatus working
added a comment