Merge pull request #6 from stefanschneider/master

Revert to write-host
Add stop handler

Disable the buffer for printf
Format source code with VS