scrollbuffer now writes directly to buffer whenever it can, simplifying code (possibly at the expense of readability)
Merge pull request #8 from Steven-Eardley/streamlined_buffer

scrollbuffer now writes directly to buffer whenever it can, simplifying ...