Added own_group to group() method
Added Generator class for fast and reusable code generation