Add stop handler

Disable the buffer for printf
Format source code with VS