moved macroses
added arg. in Open_File for opening temp files
moved file logic to IFile interface layer
there is no need of being static =)