Created daemon setup script; added some functionality