made fully functional spiritd.c everything is functioning except the signal handler definitions and the printing of the PID, still using ps -ef for that. also SIG_TERM is functional but only for the Daemon.