adding some code documentation
changing behaviour for templates of the generator group
fixing template assignation for generator groups
adjusted template assigning for generator groups to not assign templates redundantly