Handle function

Added handle function for subscriber
+ some comments in publisher