Allowing same version upgrades
Remove torrents now works.
Fixed all compiler warnings.