adding the ability to initialize the daemon with opts

Also comments.