added a simple graph header
fixed an error in io header