Minor refactoring of the Peer service.

Added comments to the Peer service

Added tests for the Peer Service in peer_test.js