added missing punctuation from ProcessInput documentation
refactored out common parts of the ProcessInput tests
more code cleanups as per code review
removed a misleading comment
writeToPack renamed
added better error messages when returning from ManagedCmd::Wait() and ManagedCmd::kill()