Updated daemon script and makefile