Use streaming interface
Test on AppVeyor
Minor tweaks