Test scatter-gather reliable algorithm
Fix buffer overrun

While at that refactor sink_pointer to be called directly,
rather than used with a temporary variable.
Use charcount as a shell script
Test and correct line scattering algorithms

While at that improve code comments and reduce indentation levels.
Add another line scatter test