Close code block and fix formatting