fix Makefile and add gitignore