changed unsigned short to unsigned int in friendlist variables and return types