refactored torrent class for better encapsulation and updating params