Remove core_core declaration from nc_core.h
Use EV_SET instead of memset and manually setting fields.
Get rid of extraneous local variables.