added cache to avoid duplication of bad torrents
made threading and edited output