What is the function of kidney? Their types, symptoms?

What is the function of kidney? Their types, symptoms?