adds internaltemp

Changed to global static variables.

Created function to change the value of files.