updates to make constructing a torrent more efficient, fix adding a .torrent broken in last commit