Added /dev entry
Add stop sign to buffer
Buffer sizes and checks for overflow.
return number of writen bytes from my_write()