get torrent data tested and working, small refactor