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

 Cleaned up run and spawn_pipe.