Add example element and type attribute

Was missing the type attribute for parameters. Also added support for example
elements that contain a command and a description.