changed NNodes to long long in density_struct.h and io.c