added printing + tests for blocks, formatted