Fix bugs in read_file.
Remove reduntante dbgbreakpoints.