Added core files and updated Makefile.