Added a usage example

Added an advanced example with some options for server, queue and pushing.