Refactor: extract code_blocks method
Add debugging on STDERR
v0.0.3