Add the group dir to the paths to be added.

Also fixed a bug where the groupDir global var was not updated.
Add group syntax instructions.