Various fixes

* Use "r" with 'interactive to get region extents
* Use standard header
* Use defgroup/defcustom
* Inline "exec-command" function
Merge pull request #2 from purcell/patch-1

Various fixes