Make generator classes reusable
This merge refactors the classes of the generator in order to reuse them in other CNNArch generator projects.
@carlos.alfredo.yeverino : Could you look over this merge, because I had a few conflicts with your commits.