(a) How to create a group
You mean how to join a bunch of loons :-\
e.g. Loon1 join player, I think you could do the same in an array too
e.g. [L1,L2,L3] join player
[L1,L2,L3] join group AG ...will automatically join the units in the array in a group named AG, so you dont have to name it later (not 100% shure on the syntax)
(b) How to name it
alphaGroup = group this ...in the init field of the leader.
(c) How to assign who's leader
Loon = leader GroupName (once again, not 100% shure on the syntax)
(d) How to edit commands to this group
e.g. loon setBehaviour "careless"
"safe"
"aware"
"combat"
"stealth"
Loon setCombatMode "blue" (never fire)
"green" (hold fire)
"white" (hold fire - engage at will)
"yellow" (fire)
"red" (fire - engage at will)
It's enough to set the bahaviour of the leader and the rest of the groupmembers should follow...
but if that don't work for some reason just use the groupname instead of the leaders name.