Add debug messages

See readme for how to enable them.