code 117 is coolant temp sensor - normal operating temp not reached. It could be a problem with the thermostat being stuck on closed. When you turn on your heater, do you get hot air coming out of the vents?
code 332 is EGR valve not opening. Might not be related to your overheating problems.