fixed bug related to storage of misbehaving peers, added comments