rewrite file.rkt with ___delta; raise IOError when opening file does not exists; correct a type error in modules