creates new structure for to allow user-choice to pub or sub, collects pub data on new pub init
Merge pull request #11 from scottjason/new-structure-pub-or-sub

creates new structure for to allow user-choice to publish or subcribe to a stream, collects pub data on new pub init