Added peer functionality

Added documentation