added new constructor in Pubnub class, and some comments