Improving state docs for cmd

Changing code blocks from python to yaml and bash