updated makefile and added vmem.c