Simpler `execCommand` logic
Argument validation in _exec
`_exec`: better error messages
Merge pull request #650 from wymeditor/_exec

Some `_exec` optimizations