Fix issue when daemonizing.

Also:
 - Add test coverage.
 - Add missing gem dependency.
 - Fix some typos in README.md