[colin] modified peers, library to use a map. adding peers is working. add reset method.