fixed color issue for printf and added memsetw for words in mem.h/mem.c