file exist checking added + datetime to log file