Added flag for using groups, added example files