Refactored peer.go
Download should be much more stable. Also added some comments