Add equals method to check comparing objects peers and pools to ensure o...

...bject equality