Add gitignore and Makefile and cleaned code