correcting usage of codeblock directive, adding css theme mode, formatting and highlighting code blocks.