Which body system is a barrier to invading organisms and chemicals and helps with temperature control?