Modify motif with don't care markers
Fixed bugs in makefile