added daemon object for easily created a daemon.