Add grouping documentation

This PR groups the functions to their appropriate types.