do some debugging

Fix a bug involving empty Buffers and Changelog construction.
Fix and add lots of debug logs.

Still LOTS of debugging to go.