I fixed mostly everything. Now is time to work and see what is chocking after getting paused. FIXES: loading times of tmp file, now is working fine. completedPieces initialization and resume for downloading