Flush

Added flush of stdout. It's required because of immediate grabbing of logs during app execution (by IDE or text editor)... Without this, logs will be displayed at once after the app quit.