Modified the commands example.
Added part event and action command.