Corrected buffer size check in headers dump
Allocate 1 byte more because string buffer is null terminated
Avoid read bucket data if buffer is full
Added some debug messages to understand how brigades and buckets work
Merge pull request #6 from zaccheob/original