added code blocks to docs