Improve format of debug messages (Fixes #8)