fix for issue AGPUSH-543 made it more clear
fix for AGPUSH-543
updated with @sblanc and @matzew 's comments
remove strange msgcnt from example
now states that global scope function is the easiest