Implemented render grouping in a better way.
Implemented even more grouping and the rendering of grouped things.