Code cleanup
Added double buffer to log writer