added instance as optional parameter for messages
Merge pull request #1 from sammarx/master

added instance as optional parameter for messages