added clean scrollbuffer write and methods to clear, read all.