fleshed out peer structure, continued work on publisher and subscriber