Add example and documentation

Closes #5