Cleaning command spec and cmd init.
Refactoring generator and rules (not roles :P) and add more tests.