Added Encoder and Decoder for Peer Info
Made changes in the Encoder
Added sour
Added the on open function