fixed a typo
+TODO
insignificant refactoring made
enum DownloadState is now used instead of booleans downloaded and downloading