Working function to parse torrent file and extract torrent info into a dictionary