Update readme code snippets to exlude extra empty lines