Various fixes/clean-up for thread/pipe implementation and tests
Merge pull request #13 from rodgert/master

Various fixes/clean-up for thread/pipe implementation and tests