Added a basic makefile.
Daemon init now retunrs a useful return value.