fix code block
Fixed optimization post typos and added code examples