Move the output function into an Output interface
Add quick example to the README