Corrected the infohash. It was yielding the wrong list of peers. Now getting correct list. Also formatted handsgake correctly - exchanging handshake with peer, getting handshake response back.