1) Update documentation to use Markdown, not apt.
2) Add code demonstrating example usage.
3) Fix a couple of other bugs.