adding makefile and other core files