Update example code to reflect current usage

See #23
Merge pull request #26 from kristofferhagen/update-examples-01

Update example code to reflect current usage