option to use dsmcad as daemon

Thanks for your code, it saved me a lot of time. I added a MODE variable that determines whether dsmcad is used in the init script.
I also fixed some minor typos, I hope you don't mind.