Cleaned up run and spawn_pipe.
Merge pull request #45 from james-darkfox/patch-1

Cleaned up run and spawn_pipe.