Solved some bugs , corrected the function that gets our next piece to download, and added downloader states