Remove dead code, peer.read and peer.initiator fields. Also lower-case some function names