Bug fixes, options refactoring, improved logging and version bump to 1.2.0

* Bumped version to 1.2.0
* fixed complete method bug
* changed remove_completed_pids to reap as many zombies as possible.
* improved log messages and improved code formatting
* refactored options
* fixed heartbeat timeout bug