Add an option for changing the target output

Fixes #10
Fix examples in documentation

Closes #5
release 0.2.2