Added surface CSV file writing to the TNE2 solver and added additional error checking in the SetTemperature routine