added comment describing IsNotCorrupted and ErrorFlag