updated todo
eof -> close -> exit -> delete temp
updated todo
document and close on exit