split nucleus functions into nucleus.c and fixed Makefile