Fixes #9

Refactored generators to use the new classes (Generator and NamedGenerator)
These classes allow the global parameter dir, which specify in which directory
to create the generator files
Merge branch 'feature/9' into develop