FIX: Fix example

@rossant ready for review/merge. For some reason this segfaults on Travis even though it does not on my machine. For now we can skip testing it. Also note I made a couple of small tweaks.