fixed namespace issues, improved event processing

* refactored all generators (removed code duplications)
* fixed USAGE descriptions
* new options for command generator
* use_domain option ist now a real option