Fix standalone build and add example

[closes #5]
Release 3.0.3