Updated peer-create for master and slave

Made peer-create able to select master and slave