added .gitignore and Makefile.
moved daemon code to the init file.