fix bugs
update Makefile and add gtkwave setting