fix a bug and update example
Merge branch 'master' of https://github.com/isdamir/jpush