implemented logic to write files to filesystem and resume downloads.
.torrent update