Enhance the StdWriter

This fixes #26
This fixes #25