Cleanup code blocks, add console example