Update core.c

fixed indent and vars