added buffer to send channel
and fixed codingstyle