refactoring and doc constnt.f, freopen bugfix c_baseio.c