Example is now runnable

Fixed a number of issues that prevented the example from being runnable.