added blk-core.c and headers