Improving documentation of dogstreams processor

* Moving test() contents into doctests
* Adding comments to the methods explaining what they're used for