-fixed crash on returning from Background and resuming download
-better efficiency in saving on disk