Various improvements command line utility

Improvements:
* added `-in` command line option to specify the input directory to search for grammars
* added `-r` command line switch to process all grammars in the input directory recursively, requires `-in` to be set
* some minor cleanup (see git log)

All tests pass.