modified exception.cc and added useropenfile (cc and header)