add threaddaemonize(), more bug fixes
7 files changed