added guild.c and h